package com.polymorphic.detail;

/**
 * @Author 小闽
 * @Date 2024/8/12 11:19
 * @PackageName: com.polymorphic.detail
 * @ClassName: Animal
 * @Description: 动物类
 * @Version 1.0
 */
public class Animal {
    String name = "动物";
    int age = 10;
    public void sleep(){
        System.out.println("睡");
    }
    public void run(){
        System.out.println("跑");
    }
    public void eat(){
        System.out.println("吃");
    }
    public void show(){
        System.out.println("hello,你好");
    }
}
